package com.atguigu.Serivce;

import com.atguigu.Utils.R;
import com.atguigu.pojo.Employee;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {

    //管理员登陆
    R login(HttpServletRequest request, Employee employee);

    R<Employee> logout(HttpServletRequest request);

    R addEmployee(HttpServletRequest request, Employee employee);

    R<Page<Employee>> page(Integer page, Integer pageSize, String name);

    R updateEmployee(HttpServletRequest request, Employee employee);

    R reCheck(HttpServletRequest request, Long id);
}
